<?php

namespace App\Providers;

use Illuminate\Auth\Events\Registered;
use Illuminate\Auth\Listeners\SendEmailVerificationNotification;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Event;

class EventServiceProvider extends ServiceProvider
{

    /**
     * The event listener mappings for the application.
     *
     * @var array
     */
    protected $listen = [
        Registered::class => [
            SendEmailVerificationNotification::class,
        ],
         'App\Events\Test' => [
             'App\Listeners\TestListener',
           ],
        'App\Events\TaskEvent' => [  //任务监听器
            'App\Listeners\TaskListener',
        ],
        'App\Events\LevelEvent' => [  //等级监听器
            'App\Listeners\LevelListener',
        ],
        'App\Events\MedalEvent' => [  //勋章监听器
            'App\Listeners\MedalListener',
        ],
        // 'App\Events\Event' => [
        //     'App\Listeners\EventListener',
        //   ],
        //   // 新增SqlListener监听QueryExecuted
        //   'Illuminate\Database\Events\QueryExecuted' => [
        //     'App\Listeners\SqlListener',
        //   ],
        
    ];

    /**
     * Register any events for your application.
     *
     * @return void
     */
    public function boot()
    {
        parent::boot();

        //
    }
}
